/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 666
 * Date: 2023-03-22
 * Time: 13:45
 */

class MyThread extends Thread{
    public void run(){
        synchronized (this){
            System.out.println("777");
        }
    }
}
public class ThreadDemo2 {
    public static void main(String[] args) {
        Thread t =new Thread(() -> System.out.println("新线程"));
        t.start();
    }
}
abstract class a{
   abstract void run();
}
 abstract  class b extends a{

 }
  interface ao{

 }

